﻿using System;
using System.Data;
using System.Data.Odbc;

namespace Azalea.ORMap
{
    public class DbFactoryOdbc : DbFactoryBase
    {
        public override string ParameterPrefix
        {
            get { return "?"; }
        }

        public override IDbConnection NewConnection()
        {
            return new OdbcConnection();
        }

        public override IDbCommand NewCommand()
        {
            return new OdbcCommand();
        }

        public override IDataAdapter NewDataAdapter(IDbCommand cmd)
        {
            return new OdbcDataAdapter((OdbcCommand) cmd);
        }

        public override IDataParameter NewParameter()
        {
            return new OdbcParameter();
        }

        public override string GetFunctionNameToGetAutoIncrementValue()
        {
            throw new NotImplementedException();
        }

        public override string GetSqlStatementToGetSchema()
        {
            throw new NotImplementedException();
        }
    }
}